﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using DSAClient.Properties;

namespace DSAClient
{
    public partial class ImageForm1 : TemplateForm
    {
        public ImageForm1()
        {
            InitializeComponent();

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);//禁止擦除背景.
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);//双缓冲
            this.UpdateStyles();

        }


        private void ImageForm1_Shown(object sender, EventArgs e)
        {
            this.BackgroundImage = Resources.background;
        }

        private void ImageForm1_Load(object sender, EventArgs e)
        {
            //this.BackgroundImage = Resources.background;
        }
    }
}
